﻿<Window x:Class="VisualWip.ColumnSettingsWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="{Binding SettingsWindowName}" Height="650" Width="500">
	<Grid Margin="10">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="150" />
			<ColumnDefinition Width="2" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<Label Content="Column name" Name="columnNameLabel" />
		<TextBox Grid.Column="2" Name="columnNameTextBox" Text="{Binding ColumnName}" MinWidth="200" />
        <CheckBox Grid.Row="1" Grid.Column="2" IsChecked="{Binding ShowHeader,Mode=TwoWay}" VerticalContentAlignment="Center" Content="Show column header" />
        <CheckBox Grid.Row="2" Grid.Column="2" IsChecked="{Binding ShowBorder,Mode=TwoWay}" VerticalContentAlignment="Center" Content="Show column border" />
		<Label Grid.Row="3" Content="Add column to window" Name="windowLabel" />
		<ComboBox Grid.Row="3" Grid.Column="2" Name="windowComboBox" ItemsSource="{Binding Windows}" DisplayMemberPath="WindowName" SelectedValue="{Binding SelectedWindow}" />
		<ContentControl Grid.Row="4" Grid.ColumnSpan="3" Name="otherSettings" Content="{Binding Path=DataContext, RelativeSource={RelativeSource Self}}" />
		<StackPanel Grid.Row="5" Grid.ColumnSpan="3" Name="buttons" Orientation="Horizontal" FlowDirection="RightToLeft">
			<Button Content="Cancel" Height="23" Name="cancelButton" Width="75" Margin="5" IsCancel="True" />
			<Button Content="Ok" Height="23" Name="okButton" Width="75" IsDefault="True" Click="okButton_Click" />
		</StackPanel>
	</Grid>
</Window>